Comparer Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the IComparer<T> used to compare keys in this dictionary.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IComparer<TKey> Comparer{ get;}
Visual Basic (Declaration)
Public ReadOnly Property Comparer As IComparer(Of TKey)
Visual C++
public:
property IComparer<TKey>^ Comparer {
	IComparer<TKey>^ get ();
}

Field Value

If the dictionary was created using a comparer, that comparer is returned. If the dictionary was created using a comparison delegate, then a comparer equivalent to that delegate is returned. Otherwise the default comparer for TKey (Comparer<TKey>.Default) is returned.

See Also